import request from '@/utils/request'

export function getAddTopList() {
  return request({
    url: '/manager/lessonTopic/putAwayTopics',
    method: 'post'
  })
}

export function getList() {
  return request({
    url: '/manager/lessonTopic/list',
    method: 'post'
  })
}

export function toggleId(params) {
  return request({
    url: '/manager/lessonTopic/operate',
    method: 'post',
    data:params
  })
}

export function getId(id) {
  return request({
    url: '/manager/lessonTopic/detail',
    method: 'post',
    data:id
  })
}

export function delId(id) {
  return request({
    url: '/manager/lessonTopic/delete',
    method: 'post',
    data:[id]
  })
}

export function update(params) {
  return request({
    url: '/manager/lessonTopic/modify',
    method: 'post',
    data:params
  })
}

export function add(params) {
  return request({
    url: '/manager/lessonTopic/create',
    method: 'post',
    data:params
  })
}

